﻿#ifndef NEWWINDOW_H
#define NEWWINDOW_H

#include <QWidget>
#include <QButtonGroup>

namespace Ui {
class newWindow;
}

class newWindow : public QWidget
{
    Q_OBJECT

public:
    explicit newWindow(QWidget *parent = nullptr);
    ~newWindow();
    void init();
    void initConnect();
    void setModelHide();
    void setModelShow();
    void setModelGui(QWidget*&w);

signals:
    void dataReady(QString name,QString path,QString width,QString height,QString info);

private slots:
    void on_radioButton_new_clicked();

    void on_radioButton_model_clicked();

    void on_pushButton_model_clicked();

    void on_BtnOk();
    void on_BtnCancel();

    void on_pushButton_path_clicked();

    void on_comboBox_ratio_currentIndexChanged(const QString &arg1);

    void on_pushButton_cancel_clicked();

    void on_pushButton_ok_clicked();

private:
    Ui::newWindow *ui;
    QIcon *icon;
    QWidget *w;
    QButtonGroup*group;
};

#endif // NEWWINDOW_H
